<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Bill extends Model
{
	
	const LOCK_STATE_RECHARGE = 1;//充值
	const LOCK_STATE_TRANSFER = 2;//划拨
	const LOCK_STATE_CHARGING = 3;//扣费

	const LOCK_STATE_RECHARGE_STRING = '充值';//充值
	const LOCK_STATE_TRANSFER_STRING = '划拨';//划拨
	const LOCK_STATE_CHARGING_STRING = '扣费';//扣费
	
    protected $table = 'account_consume_detail';
    protected $primaryKey = 'id';
    
    protected $fillable = [
        'id', 'consume_category','consume_amount','operate_by','operate_description','account_id','remark',       	
    ];
    

    public static function getLockStateDisplayMap()
    {
	    	return [
	    			self::LOCK_STATE_RECHARGE => self::LOCK_STATE_RECHARGE_STRING,
	    			self::LOCK_STATE_TRANSFER => self::LOCK_STATE_TRANSFER_STRING,
	    			self::LOCK_STATE_CHARGING => self::LOCK_STATE_CHARGING_STRING,
	    	];   
    }
    
}
